import React  from 'react'
import { BrowserRouter as Router, Route} from "react-router-dom";
import Login from './Login'
import AdminIndex from './AdminIndex';



function Main(){
    return (
        <Router>      
            <Route path="/" exact component={Login} /> 
            {/* 精准匹配 */}
            <Route path="/index"  component={AdminIndex} />
        </Router>
    ) //一级路由
}
export default Main

